<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
	<head>
		<meta http-equiv="content-type" content="text/html; charset=utf-8" />
		<meta name="generator" content="JsDoc Toolkit" />
		
		<title>JsDoc Reference - Stefan.Element</title>

		<style type="text/css">
			/* default.css */
body
{
	font: 12px "Lucida Grande", Tahoma, Arial, Helvetica, sans-serif;
	width: 800px;
}

.header
{
	clear: both;
	background-color: #ccc;
	padding: 8px;
}

h1
{
	font-size: 150%;
	font-weight: bold;
	padding: 0;
	margin: 1em 0 0 .3em;
}

hr
{
	border: none 0;
	border-top: 1px solid #7F8FB1;
	height: 1px;
}

pre.code
{
	display: block;
	padding: 8px;
	border: 1px dashed #ccc;
}

#index
{
	margin-top: 24px;
	float: left;
	width: 160px;
	position: absolute;
	left: 8px;
	background-color: #F3F3F3;
	padding: 8px;
}

#content
{
	margin-left: 190px;
	width: 600px;
}

.classList
{
	list-style-type: none;
	padding: 0;
	margin: 0 0 0 8px;
	font-family: arial, sans-serif;
	font-size: 1em;
	overflow: auto;
}

.classList li
{
	padding: 0;
	margin: 0 0 8px 0;
}

.summaryTable { width: 100%; }

h1.classTitle
{
	font-size:170%;
	line-height:130%;
}

h2 { font-size: 110%; }
caption, div.sectionTitle
{
	background-color: #7F8FB1;
	color: #fff;
	font-size:130%;
	text-align: left;
	padding: 2px 6px 2px 6px;
	border: 1px #7F8FB1 solid;
}

div.sectionTitle { margin-bottom: 8px; }
.summaryTable thead { display: none; }

.summaryTable td
{
	vertical-align: top;
	padding: 4px;
	border-bottom: 1px #7F8FB1 solid;
	border-right: 1px #7F8FB1 solid;
}

/*col#summaryAttributes {}*/
.summaryTable td.attributes
{
	border-left: 1px #7F8FB1 solid;
	width: 140px;
	text-align: right;
}

td.attributes, .fixedFont
{
	line-height: 15px;
	color: #002EBE;
	font-family: "Courier New",Courier,monospace;
	font-size: 13px;
}

.summaryTable td.nameDescription
{
	text-align: left;
	font-size: 13px;
	line-height: 15px;
}

.summaryTable td.nameDescription, .description
{
	line-height: 15px;
	padding: 4px;
	padding-left: 4px;
}

.summaryTable { margin-bottom: 8px; }

ul.inheritsList
{
	list-style: square;
	margin-left: 20px;
	padding-left: 0;
}

.detailList {
	margin-left: 20px; 
	line-height: 15px;
}
.detailList dt { margin-left: 20px; }

.detailList .heading
{
	font-weight: bold;
	padding-bottom: 6px;
	margin-left: 0;
}

.light, td.attributes, .light a:link, .light a:visited
{
	color: #777;
	font-style: italic;
}

.fineprint
{
	text-align: right;
	font-size: 10px;
}
		</style>
	</head>

	<body>
<!-- ============================== header ================================= -->	
		<!-- begin static/header.html -->
		<div id="header">
</div>
		<!-- end static/header.html -->

<!-- ============================== classes index ============================ -->
		<div id="index">
			<!-- begin publish.classesIndex -->
			<div align="center"><a href="../index.html">Class Index</a>
| <a href="../files.html">File Index</a></div>
<hr />
<h2>Classes</h2>
<ul class="classList">
	
	<li><i><a href="../symbols/_global_.html">_global_</a></i></li>
	
	<li><a href="../symbols/Stefan.Circle.html">Stefan.Circle</a></li>
	
	<li><a href="../symbols/Stefan.Element.html">Stefan.Element</a></li>
	
	<li><a href="../symbols/Stefan.Rect.html">Stefan.Rect</a></li>
	
	<li><a href="../symbols/Stefan.RoundedRect.html">Stefan.RoundedRect</a></li>
	
	<li><a href="../symbols/Stefan.Text.html">Stefan.Text</a></li>
	
</ul>
<hr />
			<!-- end publish.classesIndex -->
		</div>
		
		<div id="content">
<!-- ============================== class title ============================ -->
			<h1 class="classTitle">
				
				Class Stefan.Element
			</h1>

<!-- ============================== class summary ========================== -->			
			<p class="description">
				
				
			
				
				
				
					<br /><i>Defined in: </i> <a href="../symbols/src/output__element_Element.js.html">Element.js</a>.
				
			</p>

<!-- ============================== constructor summary ==================== -->			
			
			<table class="summaryTable" cellspacing="0" summary="A summary of the constructor documented in the class Stefan.Element.">
				<caption>Class Summary</caption>
				<thead>
					<tr>
						<th scope="col">Constructor Attributes</th>
						<th scope="col">Constructor Name and Description</th>
					</tr>
				</thead>
				<tbody>
					<tr>
						<td class="attributes">&nbsp;</td>
						<td class="nameDescription" >
							<div class="fixedFont">
								<b><a href="../symbols/Stefan.Element.html#constructor">Stefan.Element</a></b>()
							</div>
							<div class="description">基础元素类</div>
						</td>
					</tr>
				</tbody>
			</table>
			

<!-- ============================== properties summary ===================== -->
			

<!-- ============================== methods summary ======================== -->
			
				
				
				<table class="summaryTable" cellspacing="0" summary="A summary of the methods documented in the class Stefan.Element.">
					<caption>Method Summary</caption>
					<thead>
						<tr>
							<th scope="col">Method Attributes</th>
							<th scope="col">Method Name and Description</th>
						</tr>
					</thead>
					<tbody>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/Stefan.Element.html#appendChild">appendChild</a></b>(child)
								</div>
								<div class="description">添加子元素</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/Stefan.Element.html#eventTest">eventTest</a></b>(e)
								</div>
								<div class="description">事件检测</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/Stefan.Element.html#getAnchor">getAnchor</a></b>()
								</div>
								<div class="description">返回元素大小</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/Stefan.Element.html#getLayerTransition">getLayerTransition</a></b>()
								</div>
								<div class="description">返回针对于Layer(canvas)的坐标转化</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/Stefan.Element.html#getOrigTransition">getOrigTransition</a></b>()
								</div>
								<div class="description">返回针对于窗口的坐标转化</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/Stefan.Element.html#getParent">getParent</a></b>()
								</div>
								<div class="description">返回父元素</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/Stefan.Element.html#getPosition">getPosition</a></b>()
								</div>
								<div class="description">返回元素位置(相对于父元素)</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/Stefan.Element.html#getRealBounds">getRealBounds</a></b>()
								</div>
								<div class="description">返回真正的渲染范围（考虑子元素超出父元素的情况）</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/Stefan.Element.html#getRotation">getRotation</a></b>()
								</div>
								<div class="description">返回旋转值（度数）</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/Stefan.Element.html#getScale">getScale</a></b>()
								</div>
								<div class="description">返回缩放值</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/Stefan.Element.html#getSelfBounds">getSelfBounds</a></b>()
								</div>
								<div class="description">返回以anchor点为中心的上右下左的距离</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/Stefan.Element.html#getSize">getSize</a></b>()
								</div>
								<div class="description">返回元素大小</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/Stefan.Element.html#getStage">getStage</a></b>()
								</div>
								<div class="description">返回layer舞台</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/Stefan.Element.html#hide">hide</a></b>(value)
								</div>
								<div class="description">是否隐藏（不渲染）这个元素</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/Stefan.Element.html#isAncestor">isAncestor</a></b>(element)
								</div>
								<div class="description">返回传入节点是否为祖先节点</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/Stefan.Element.html#isHidden">isHidden</a></b>()
								</div>
								<div class="description">返回是否隐藏（不渲染）这个元素</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/Stefan.Element.html#isSibbling">isSibbling</a></b>(element)
								</div>
								<div class="description">返回传入节点是否为兄弟节点</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/Stefan.Element.html#on">on</a></b>(type, callback)
								</div>
								<div class="description">设置事件监听</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/Stefan.Element.html#parentToSelf">parentToSelf</a></b>(position)
								</div>
								<div class="description">返回从父元素到自身的坐标转化后的位置</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/Stefan.Element.html#removeChild">removeChild</a></b>(child)
								</div>
								<div class="description">删除子元素</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/Stefan.Element.html#render">render</a></b>(context)
								</div>
								<div class="description">渲染自身（填充描边）</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/Stefan.Element.html#renderAll">renderAll</a></b>(context)
								</div>
								<div class="description">渲染自身和所有子节点</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/Stefan.Element.html#reRegisterEvents">reRegisterEvents</a></b>(oldP, newP)
								</div>
								<div class="description">重新设置监听事件（一般发生在appendChild之后）</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/Stefan.Element.html#screenToSelf">screenToSelf</a></b>(position)
								</div>
								<div class="description">返回从窗口到自身的坐标转化后的位置</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/Stefan.Element.html#selfToParent">selfToParent</a></b>(position)
								</div>
								<div class="description">返回从自身到父元素的坐标转化后的位置</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/Stefan.Element.html#setAnchor">setAnchor</a></b>(anchor)
								</div>
								<div class="description">设置元素大小</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/Stefan.Element.html#setPosition">setPosition</a></b>(value)
								</div>
								<div class="description">设置元素位置(相对于父元素)</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/Stefan.Element.html#setRotation">setRotation</a></b>(value)
								</div>
								<div class="description">设置旋转值（度数）</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/Stefan.Element.html#setScale">setScale</a></b>(value)
								</div>
								<div class="description">设置缩放值</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/Stefan.Element.html#setSize">setSize</a></b>(size)
								</div>
								<div class="description">设置元素大小</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/Stefan.Element.html#un">un</a></b>(type, callback)
								</div>
								<div class="description">取消事件监听</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/Stefan.Element.html#update">update</a></b>()
								</div>
								<div class="description">更新调用接口</div>
							</td>
						</tr>
					
					</tbody>
				</table>
				
				
				
			
<!-- ============================== events summary ======================== -->
			

<!-- ============================== constructor details ==================== -->		
			
			<div class="details"><a name="constructor"> </a>
				<div class="sectionTitle">
					Class Detail
				</div>
				
				<div class="fixedFont">
						<b>Stefan.Element</b>()
				</div>
				
				<div class="description">
					基础元素类
					
				</div>
				
				
				
				
					
					
					
					
					
					
					

			</div>
			

<!-- ============================== field details ========================== -->		
			

<!-- ============================== method details ========================= -->		
			
				<div class="sectionTitle">
					Method Detail
				</div>
				
					<a name="appendChild"> </a>
					<div class="fixedFont">
					
					
					<b>appendChild</b>(child)
					
					</div>
					<div class="description">
						添加子元素
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{<a href="../symbols/Stefan.Element.html">Stefan.Element</a>}</span> <b>child</b>
									
								</dt>
								<dd>子元素</dd>
							
							</dl>
						
						
						
						
						
						
						

					<hr />
				
					<a name="eventTest"> </a>
					<div class="fixedFont">
					
					
					<b>eventTest</b>(e)
					
					</div>
					<div class="description">
						事件检测
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{object}</span> <b>e</b>
									
								</dt>
								<dd>Event对象</dd>
							
							</dl>
						
						
						
						
						
						
						

					<hr />
				
					<a name="getAnchor"> </a>
					<div class="fixedFont">
					
					<span class="light">{array}</span>
					<b>getAnchor</b>()
					
					</div>
					<div class="description">
						返回元素大小
						
						
					</div>
					
					
					
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{array}</span> 元素锚点anchor(array):anchor[0]为很坐标，anchor[1]为纵坐标</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="getLayerTransition"> </a>
					<div class="fixedFont">
					
					<span class="light">{object}</span>
					<b>getLayerTransition</b>()
					
					</div>
					<div class="description">
						返回针对于Layer(canvas)的坐标转化
						
						
					</div>
					
					
					
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{object}</span> 包含x/y两个属性的对象</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="getOrigTransition"> </a>
					<div class="fixedFont">
					
					<span class="light">{object}</span>
					<b>getOrigTransition</b>()
					
					</div>
					<div class="description">
						返回针对于窗口的坐标转化
						
						
					</div>
					
					
					
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{object}</span> 包含x/y两个属性的对象</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="getParent"> </a>
					<div class="fixedFont">
					
					<span class="light">{<a href="../symbols/Stefan.Element.html">Stefan.Element</a>}</span>
					<b>getParent</b>()
					
					</div>
					<div class="description">
						返回父元素
						
						
					</div>
					
					
					
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{<a href="../symbols/Stefan.Element.html">Stefan.Element</a>}</span> 父元素</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="getPosition"> </a>
					<div class="fixedFont">
					
					<span class="light">{object}</span>
					<b>getPosition</b>()
					
					</div>
					<div class="description">
						返回元素位置(相对于父元素)
						
						
					</div>
					
					
					
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{object}</span> 元素锚点opsition(object):position.x为很坐标，position.y为纵坐标</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="getRealBounds"> </a>
					<div class="fixedFont">
					
					<span class="light">{object}</span>
					<b>getRealBounds</b>()
					
					</div>
					<div class="description">
						返回真正的渲染范围（考虑子元素超出父元素的情况）
						
						
					</div>
					
					
					
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{object}</span> 包含top/right/bottom/left四属性的对象</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="getRotation"> </a>
					<div class="fixedFont">
					
					<span class="light">{number}</span>
					<b>getRotation</b>()
					
					</div>
					<div class="description">
						返回旋转值（度数）
						
						
					</div>
					
					
					
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{number}</span> 度数</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="getScale"> </a>
					<div class="fixedFont">
					
					<span class="light">{array}</span>
					<b>getScale</b>()
					
					</div>
					<div class="description">
						返回缩放值
						
						
					</div>
					
					
					
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{array}</span> 元素缩放值scale(array):scale[0]横向缩放值，scale[1]纵向缩放值</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="getSelfBounds"> </a>
					<div class="fixedFont">
					
					<span class="light">{object}</span>
					<b>getSelfBounds</b>()
					
					</div>
					<div class="description">
						返回以anchor点为中心的上右下左的距离
						
						
					</div>
					
					
					
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{object}</span> 包含top/right/bottom/left四属性的对象</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="getSize"> </a>
					<div class="fixedFont">
					
					<span class="light">{object}</span>
					<b>getSize</b>()
					
					</div>
					<div class="description">
						返回元素大小
						
						
					</div>
					
					
					
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{object}</span> 元素大小size(object):size.width为宽度，size.height为高度</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="getStage"> </a>
					<div class="fixedFont">
					
					<span class="light">{Stefan.Layer}</span>
					<b>getStage</b>()
					
					</div>
					<div class="description">
						返回layer舞台
						
						
					</div>
					
					
					
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{Stefan.Layer}</span> layer</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="hide"> </a>
					<div class="fixedFont">
					
					
					<b>hide</b>(value)
					
					</div>
					<div class="description">
						是否隐藏（不渲染）这个元素
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{boolean}</span> <b>value</b>
									
								</dt>
								<dd>true/false</dd>
							
							</dl>
						
						
						
						
						
						
						

					<hr />
				
					<a name="isAncestor"> </a>
					<div class="fixedFont">
					
					<span class="light">{object}</span>
					<b>isAncestor</b>(element)
					
					</div>
					<div class="description">
						返回传入节点是否为祖先节点
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{<a href="../symbols/Stefan.Element.html">Stefan.Element</a>}</span> <b>element</b>
									
								</dt>
								<dd></dd>
							
							</dl>
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{object}</span> true/false</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="isHidden"> </a>
					<div class="fixedFont">
					
					<span class="light">{boolean}</span>
					<b>isHidden</b>()
					
					</div>
					<div class="description">
						返回是否隐藏（不渲染）这个元素
						
						
					</div>
					
					
					
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{boolean}</span> true/false</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="isSibbling"> </a>
					<div class="fixedFont">
					
					<span class="light">{boolean}</span>
					<b>isSibbling</b>(element)
					
					</div>
					<div class="description">
						返回传入节点是否为兄弟节点
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{<a href="../symbols/Stefan.Element.html">Stefan.Element</a>}</span> <b>element</b>
									
								</dt>
								<dd></dd>
							
							</dl>
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{boolean}</span> true/false</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="on"> </a>
					<div class="fixedFont">
					
					
					<b>on</b>(type, callback)
					
					</div>
					<div class="description">
						设置事件监听
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{string}</span> <b>type</b>
									
								</dt>
								<dd>事件类型</dd>
							
								<dt>
									<span class="light fixedFont">{function}</span> <b>callback</b>
									
								</dt>
								<dd>监听方法</dd>
							
							</dl>
						
						
						
						
						
						
						

					<hr />
				
					<a name="parentToSelf"> </a>
					<div class="fixedFont">
					
					<span class="light">{object}</span>
					<b>parentToSelf</b>(position)
					
					</div>
					<div class="description">
						返回从父元素到自身的坐标转化后的位置
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<b>position</b>
									
								</dt>
								<dd></dd>
							
							</dl>
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{object}</span> 包含x/y两个属性的对象</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="removeChild"> </a>
					<div class="fixedFont">
					
					
					<b>removeChild</b>(child)
					
					</div>
					<div class="description">
						删除子元素
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{<a href="../symbols/Stefan.Element.html">Stefan.Element</a>}</span> <b>child</b>
									
								</dt>
								<dd>子元素</dd>
							
							</dl>
						
						
						
						
						
						
						

					<hr />
				
					<a name="render"> </a>
					<div class="fixedFont">
					
					
					<b>render</b>(context)
					
					</div>
					<div class="description">
						渲染自身（填充描边）
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{Object}</span> <b>context</b>
									
								</dt>
								<dd></dd>
							
							</dl>
						
						
						
						
						
						
						

					<hr />
				
					<a name="renderAll"> </a>
					<div class="fixedFont">
					
					
					<b>renderAll</b>(context)
					
					</div>
					<div class="description">
						渲染自身和所有子节点
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{Object}</span> <b>context</b>
									
								</dt>
								<dd></dd>
							
							</dl>
						
						
						
						
						
						
						

					<hr />
				
					<a name="reRegisterEvents"> </a>
					<div class="fixedFont">
					
					
					<b>reRegisterEvents</b>(oldP, newP)
					
					</div>
					<div class="description">
						重新设置监听事件（一般发生在appendChild之后）
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{<a href="../symbols/Stefan.Element.html">Stefan.Element</a>}</span> <b>oldP</b>
									
								</dt>
								<dd>原来的父节点</dd>
							
								<dt>
									<span class="light fixedFont">{<a href="../symbols/Stefan.Element.html">Stefan.Element</a>}</span> <b>newP</b>
									
								</dt>
								<dd>新的父节点</dd>
							
							</dl>
						
						
						
						
						
						
						

					<hr />
				
					<a name="screenToSelf"> </a>
					<div class="fixedFont">
					
					<span class="light">{object}</span>
					<b>screenToSelf</b>(position)
					
					</div>
					<div class="description">
						返回从窗口到自身的坐标转化后的位置
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<b>position</b>
									
								</dt>
								<dd></dd>
							
							</dl>
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{object}</span> 包含x/y两个属性的对象</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="selfToParent"> </a>
					<div class="fixedFont">
					
					<span class="light">{object}</span>
					<b>selfToParent</b>(position)
					
					</div>
					<div class="description">
						返回从自身到父元素的坐标转化后的位置
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<b>position</b>
									
								</dt>
								<dd></dd>
							
							</dl>
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{object}</span> 包含x/y两个属性的对象</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="setAnchor"> </a>
					<div class="fixedFont">
					
					<span class="light">{mixed}</span>
					<b>setAnchor</b>(anchor)
					
					</div>
					<div class="description">
						设置元素大小
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<b>anchor</b>
									
								</dt>
								<dd></dd>
							
							</dl>
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{mixed}</span> anchor 元素锚点（可以是数组或者枚举参数）</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="setPosition"> </a>
					<div class="fixedFont">
					
					<span class="light">{mixed}</span>
					<b>setPosition</b>(value)
					
					</div>
					<div class="description">
						设置元素位置(相对于父元素)
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<b>value</b>
									
								</dt>
								<dd></dd>
							
							</dl>
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{mixed}</span> value 元素位置（可以是对象或者枚举参数）</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="setRotation"> </a>
					<div class="fixedFont">
					
					
					<b>setRotation</b>(value)
					
					</div>
					<div class="description">
						设置旋转值（度数）
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{number}</span> <b>value</b>
									
								</dt>
								<dd>度数</dd>
							
							</dl>
						
						
						
						
						
						
						

					<hr />
				
					<a name="setScale"> </a>
					<div class="fixedFont">
					
					<span class="light">{mixed}</span>
					<b>setScale</b>(value)
					
					</div>
					<div class="description">
						设置缩放值
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<b>value</b>
									
								</dt>
								<dd></dd>
							
							</dl>
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{mixed}</span> value 元素缩放值（可以是数组或者枚举参数）</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="setSize"> </a>
					<div class="fixedFont">
					
					
					<b>setSize</b>(size)
					
					</div>
					<div class="description">
						设置元素大小
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{mixed}</span> <b>size</b>
									
								</dt>
								<dd>元素大小（可以是对象或者枚举参数）</dd>
							
							</dl>
						
						
						
						
						
						
						

					<hr />
				
					<a name="un"> </a>
					<div class="fixedFont">
					
					
					<b>un</b>(type, callback)
					
					</div>
					<div class="description">
						取消事件监听
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{string}</span> <b>type</b>
									
								</dt>
								<dd>事件类型</dd>
							
								<dt>
									<span class="light fixedFont">{function}</span> <b>callback</b>
									
								</dt>
								<dd>监听方法</dd>
							
							</dl>
						
						
						
						
						
						
						

					<hr />
				
					<a name="update"> </a>
					<div class="fixedFont">
					
					
					<b>update</b>()
					
					</div>
					<div class="description">
						更新调用接口
						
						
					</div>
					
					
					
						
						
						
						
						
						
						

					
				
			
			
<!-- ============================== event details ========================= -->		
			
			
			<hr />
		</div>

		
<!-- ============================== footer ================================= -->
		<div class="fineprint" style="clear:both">
			
			Documentation generated by <a href="http://code.google.com/p/jsdoc-toolkit/" target="_blank">JsDoc Toolkit</a> 2.4.0 on Tue Dec 20 2011 10:52:02 GMT+0800 (CST)
		</div>
	</body>
</html>
